package com.lagou.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "lagou-service-email", path = "/email")
public interface SendCodeFeign {

    @GetMapping("/sendCode/{email}/{code}")
    boolean sendCode(@PathVariable String email,@PathVariable String code);
}
